import axios from 'axios';

// 创建axios实例
const api = axios.create({
    baseURL: '/api', // 与Vite代理匹配
    headers: {
        'Content-Type': 'application/json;charset=utf-8'
    }
});

export default api;